<?php
session_start();
require('conn.php');
require('functions.php');
require('session.php');
$phone=$_GET['phone'];
if ($phone) {
$userdatas=$mysql->query("select * from `userdata` where `phone` in({$phone}) limit 1");
$_SESSION['userdata']=$userdatas[0];
$userdata=$userdatas[0];
}
?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>个人中心</title>
<meta name="keywords" content="<?php echo $config['sitename']?>,个人中心,用户中心" />
<meta name="description" content="<?php echo $config['sitename']?>个人中心。">
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link href="static/all.css" type="text/css" rel="stylesheet" media="all">
</head>

<body class="mhome" style="min-width:320px;max-width:480px;">
    
<div class="money clearfix" style="min-width:320px;max-width: 480px;">
    <p style="float:left;width:100%;text-align: center;margin-top: 5%;">
        <span class="userId">
            <!-- 转客<?php echo $userdata['id']?>的收益余额 -->
            账户余额(元)</span>
        <a  href="invite.php?type=1" class="bor" style="left: 10%;position: absolute;">
        <img class="user-check-detail" src="static/images/logo2.png"/>
        <br>
        <span style="color:white">点击关注</span>
        </a>
        
    </p>
    <p class="userUm"><a href="referer.php"><?php echo $userdata['money']?></a></p>
</div>
<div class="userUm-detail clearfix" style="min-width:320px;max-width: 480px;">
    <div class="userUm-detail-1">
        <p class="userUm-detail-title">个人累计收益(元)</p>
        <p class="userUm-detail-number"><?php echo $userdata['money_all']?></p>
    </div>
    <div class="userUm-detail-2">
        <p class="userUm-detail-title">邀请好友收益(元)</p>
        <p class="userUm-detail-number"><?php echo $userdata['money_xia']?></p>
    </div>
</div>
<?php
if($config['gonggao']!==''){
?>
<!-- <div class="gonggao" id="Layer1"><marquee scrollamount="5" behavior="right"><p> <img src="static/gg.png"><a style="color:red"><?php echo $config['gonggao']?></a></p></marquee></div> -->
<?php }?>
<?php
if($config['UserAddArticle']==1){
?>
<div class="gonggao">
    <p><a href="weixin.php">发布文章</a></p>
</div>
<?php }?>
<nav style="height:50%;width:100%;position:absolute;top:40%;min-width:320px;max-width: 480px;">
    <ul class="clearfix" style="height:33.3%;border-bottom: 1px solid #e4e4e4;">
        <li><a class="a1" href="<?php echo $site?>/list.php?uid=<?php echo $userdata['id']?>"></a></li>
        <li><a class="a2" href="<?php echo $site?>/tx.php"></a></li>
        <li><a class="a3" href="xia.php"></a></li>
    </ul>
    <ul class="clearfix" style="height:33.3%;border-bottom: 1px solid #e4e4e4;">
        <li><a class="a4" href="<?php echo $site?>/news.php?type=0"></a></li>
        <li><a class="a5" href="invite.php?type=0&uid=<?php echo $userdata['id']?>"></a></li>
        <li><a class="a6" href="<?php echo $site?>/txlist.php"></a></li>
    </ul>
    <ul class="clearfix"style="height:33.3%;border-bottom: 1px solid #e4e4e4;">
        <li><a class="a7" href="<?php echo $site?>/pai.php"></a></li>
        <li><a class="a8" href="<?php echo $site?>/zl.php"></a></li>
        <li><a class="a9" href="referer.php"></a></li>
    </ul>    

</nav>
<?php
@session_start();
if(isset($_SESSION)){
    $_uid=$_SESSION['userdata']['id'];
}else{
    $_uid=guolv($_GET['uid']);
}
?>
<div class="positionFooter">
    <ul style="height:100%;">
        <li><a class="a4" href="<?php echo $site?>/ucenter.php"></a></li>   
        <li><a class="a2" href="<?php echo $site?>/list.php?uid=<?php echo $_uid?>"></a></li>
        <li><a class="a3" href="<?php echo $site?>/news.php?type=1"></a></li>
    </ul>
</div>

<?php
$mysql->__destruct();
$mysql->close();
?>
</body>
</html>